﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace YL.Core.Entity
{
    [SugarTable("whr_user_refresh_token")]
    public class Whr_user_refresh_token
    {
        [SugarColumn(ColumnName = "token_id", IsPrimaryKey = true)]
        public long TokenId { get; set; }
        
        [SugarColumn(ColumnName = "user_id")]
        public int UserId { get; set; }
        
        [SugarColumn(ColumnName = "refresh_token")]
        public string RefreshToken { get; set; }

        [SugarColumn(ColumnName = "create_at")]
        public DateTime? CreateAt { get; set; } = DateTime.Now;

        [SugarColumn(ColumnName = "expired")]
        public int? Expired { get; set; }
    }
}
